// JavaScript Document
function site_url(url)
{
  return myData.baseUrl+url; 
}

function switchLang(lang,url) {
      //
}

//logout
function logout(url) {
    html='<form name="logoutFrm" id="logoutFrm" method="post" action="'+url+'" style="display:none" >';
    html+='<input name="logout" value="1" /></form>'
    $('body').append(html);
    $('#logoutFrm').submit();
}

function normalize_str(raw)
{
    var search_str  = " .ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿ";
    var replace_str = "__aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyyby";
    var norm=raw.toLowerCase();
    for (var i=0;i<search_str.length;i++) {
        norm = norm.replace(search_str.charAt(i),replace_str.charAt(i),"g");
    }
    norm = norm.replace(/[^a-zA-Z0-9-_]/, "");
    return norm;
}
